package stu.sup.dto;

import java.util.Date;

/**
 * Created by HUAWEI on 2020/6/21.
 */
public class ProductDto {
    private Integer id;

    private String productName;

    private Double productPrice;

    private String productDesc;

    private Integer productCommentId;

    private Integer productImgId;

    private Integer productClassId;

    private Integer productStock;

    private Double minProductPrice;

    private Double maxProductPrice;

    private String className;

    private String productBrand;

    private String productPlace;

    private Date productTime;

    private String productWeight;

    private String productSaleway;


    private String imgCount;

    public ProductDto() {
    }

    public ProductDto(Integer id , String productName, Double productPrice, String productDesc, String className, String productBrand, String productPlace, Date productTime, String productWeight, String productSaleway, Integer productStock, String imgCount) {
        this.id=id;
        this.productName = productName;
        this.productPrice = productPrice;
        this.productDesc = productDesc;
        this.className = className;
        this.productBrand = productBrand;
        this.productPlace = productPlace;
        this.productTime = productTime;
        this.productWeight = productWeight;
        this.productSaleway = productSaleway;
        this.productStock = productStock;
        this.imgCount = imgCount;
    }

    public Integer getProductCommentId() {
        return productCommentId;
    }

    public void setProductCommentId(Integer productCommentId) {
        this.productCommentId = productCommentId;
    }

    public Integer getProductImgId() {
        return productImgId;
    }

    public void setProductImgId(Integer productImgId) {
        this.productImgId = productImgId;
    }

    public Integer getProductClassId() {
        return productClassId;
    }

    public void setProductClassId(Integer productClassId) {
        this.productClassId = productClassId;
    }

    public String getProductName() {
        return productName;
    }

    public Double getMinProductPrice() {
        return minProductPrice;
    }

    public void setMinProductPrice(Double minProductPrice) {
        this.minProductPrice = minProductPrice;
    }

    public Double getMaxProductPrice() {
        return maxProductPrice;
    }

    public void setMaxProductPrice(Double maxProductPrice) {
        this.maxProductPrice = maxProductPrice;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getProductBrand() {
        return productBrand;
    }

    public void setProductBrand(String productBrand) {
        this.productBrand = productBrand;
    }

    public String getProductPlace() {
        return productPlace;
    }

    public void setProductPlace(String productPlace) {
        this.productPlace = productPlace;
    }

    public Date getProductTime() {
        return productTime;
    }

    public void setProductTime(Date productTime) {
        this.productTime = productTime;
    }

    public String getProductWeight() {
        return productWeight;
    }

    public void setProductWeight(String productWeight) {
        this.productWeight = productWeight;
    }

    public String getProductSaleway() {
        return productSaleway;
    }

    public void setProductSaleway(String productSaleway) {
        this.productSaleway = productSaleway;
    }

    public Integer getProductStock() {
        return productStock;
    }

    public void setProductStock(Integer productStock) {
        this.productStock = productStock;
    }

    public String getImgCount() {
        return imgCount;
    }

    public void setImgCount(String imgCount) {
        this.imgCount = imgCount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ProductDto{");
        sb.append("productName='").append(productName).append('\'');
        sb.append(", productPrice=").append(productPrice);
        sb.append(", productDesc='").append(productDesc).append('\'');
        sb.append(", className='").append(className).append('\'');
        sb.append(", productBrand='").append(productBrand).append('\'');
        sb.append(", productPlace='").append(productPlace).append('\'');
        sb.append(", productTime=").append(productTime);
        sb.append(", productWeight='").append(productWeight).append('\'');
        sb.append(", productSaleway='").append(productSaleway).append('\'');
        sb.append(", productStock=").append(productStock);
        sb.append(", imgCount='").append(imgCount).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
